/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import com.thinkgem.jeesite.common.persistence.ActEntity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;
import java.util.Date;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 移库Entity
 * @author 移库
 * @version 2019-12-21
 */
public class MoveStock extends ActEntity<MoveStock> {

	private static final long serialVersionUID = 1L;
	private Warehouse locid;		// 库位id
	private Warehouse tlocid;		// 目标库位id
	private User user;		// 用户
	private String code;		// 单号
	private Date beginCreateDate;		// 开始 时间
	private Date endCreateDate;		// 结束 时间
	private List<MoveStockDetail> moveStockDetailList = Lists.newArrayList();		// 子表列表
	private String procInsId;		// 流程id
	public MoveStock() {
		super();
	}

	public MoveStock(String id){
		super(id);
	}

	public Warehouse getLocid() {
		return locid;
	}

	public void setLocid(Warehouse locid) {
		this.locid = locid;
	}

	public Warehouse getTlocid() {
		return tlocid;
	}

	public void setTlocid(Warehouse tlocid) {
		this.tlocid = tlocid;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=50, message="单号长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public List<MoveStockDetail> getMoveStockDetailList() {
		return moveStockDetailList;
	}

	public void setMoveStockDetailList(List<MoveStockDetail> moveStockDetailList) {
		this.moveStockDetailList = moveStockDetailList;
	}
}